<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>count page</title>
  </head>
<%
	if(application.getAttribute("count")==null){
		application.setAttribute("count",new Integer(0));
	}
	Integer i=(Integer)application.getAttribute("count");
	i++;
	application.setAttribute("count",i);
%>
  <body>
    这是你第<h3><%=application.getAttribute("count")%></h3>个访问本站的
  </body>
</html>
